import React from 'react';
import { Form } from 'antd';
import { AxCreateForm } from '@/components/AxForm/AxCreateForm';
import { AxInput, AxSelectSearch } from '@/components/AxForm/AxFormItem';

const Create: React.FC<any> = props => {
  const { form, ...rest } = props;

  return (
    <>
      <AxCreateForm
        form={form}
        title="添加采购主体人员"
        {...rest}
        items={[
          <AxSelectSearch
            form={form}
            label="人员名称"
            field="campusId"
            // data={campus}
            // value={values.campusId}
            required
          />,
          <AxInput form={form} label="联系电话" field="campusId1" />,
        ]}
      />
    </>
  );
};

export default Form.create<any>()(Create);
